package com.util;

/**
 * 全局状态码
 * 如果业务方有自己的业务错误码,可以重新定义
 */
public enum ServiceResultCode {

    SUCCESS("1000","响应成功"),
    SYS_ERROR("-1","系统繁忙");

    private String serverCode;
    private String serverMsg;

    public String getServerCode() {
        return serverCode;
    }

    public void setServerCode(String serverCode) {
        this.serverCode = serverCode;
    }

    public String getServerMsg() {
        return serverMsg;
    }

    public void setServerMsg(String serverMsg) {
        this.serverMsg = serverMsg;
    }

    ServiceResultCode(String serverCode, String serverMsg) {
        this.serverCode = serverCode;
        this.serverMsg = serverMsg;
    }
}